#ifndef MARKERITEM_H
#define MARKERITEM_H

#include <QGraphicsObject>

class MarkerItem : public QGraphicsObject
{
    Q_OBJECT

public:
    MarkerItem(QGraphicsItem* parent = 0);
    void setYPos(qreal yPos);

protected:
    QRectF boundingRect() const;
    void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
    QVariant itemChange(GraphicsItemChange change, const QVariant& value);
    void focusInEvent(QFocusEvent* event);
    void focusOutEvent(QFocusEvent* event);

signals:
    void focusChanged();

private:
    qreal m_yPos;
};

#endif // MARKERITEM_H
